home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / utilityFunctions.lua < prev   
Encoding:
Text File  |  2004-10-05  |  619 b   |  33 lines

  1.  
  2. function utility_map_watercolor(w_r,w_g,w_b,w_a,weight_r,weight_g,weight_b,weight_a)
  3.  
  4.     wcolor = D3DCOLORVALUE:new()
  5.     wcolor.r = w_r
  6.     wcolor.g = w_g
  7.     wcolor.b = w_b
  8.     wcolor.a = w_a
  9.  
  10.     wcolorweight = D3DCOLORVALUE:new()
  11.     wcolorweight.r = weight_r
  12.     wcolorweight.g = weight_g
  13.     wcolorweight.b = weight_b
  14.     wcolorweight.a = weight_a
  15.  
  16.     map:setWaterColor(wcolor,wcolorweight)
  17.  
  18.     wcolor:delete()
  19.     wcolorweight:delete()
  20. end
  21.  
  22. function utility_map_setbackground(map,r,g,b)
  23.  
  24.     bcolor = D3DCOLORVALUE:new()
  25.     bcolor.r = r
  26.     bcolor.g = g
  27.     bcolor.b = b
  28.  
  29.     map:setBackgroundColor(bcolor)
  30.  
  31.     bcolor:delete()
  32. end
  33.